<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>天娱彩票 应用下载</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="/css1/download/style.css">
</head>

<body>
	<div class="nav">天娱彩票 应用下载</div>
	<div>
		<div class="logo">
			<img src="/images/uz_icon.png">
		</div>
		<div id="android" style="display:none">
			<div class="button_download"><a href="http://www.ty2201.com/app/tianyu.apk">安卓手机客户端下载</a></div>
			<div class="fonts">
				<div class="method">
					<div class="fm_icon">1</div>
					<div class="fm_font">在打开的页面内点击直接下载安装</div>
				</div>
				<div class="method">
					<div class="fm_icon">2</div>
					<div class="fm_font">系统将自动下载应用程序</div>
				</div>
				<div class="method">
					<div class="fm_icon">3</div>
					<div class="fm_font">下载完成后点击安装, 操作如下：</div>
				</div>
				<div class="fm_fonts">设定 > 未知来源(允许) > 安装</div>
				<div class="method">
					<div class="fm_icon">4</div>
					<div class="fm_font">立即开启应用程序</div>
				</div>
				<div class="method">
					<div class="fm_font1">注意：使用微信扫描器需要点右上角菜单选择浏览器下载，谢谢！</div>
				</div>
			</div>
		</div>
		
		<div id="ios" style="display:none">
			<div class="button_download"><a href="itms-services://?action=download-manifest&amp;url=http://www.ty2201.com/app/app.plist">苹果手机客户端下载</a></div>
			<div class="fonts">
				<div class="method">
					<div class="fm_icon">1</div>
					<div class="fm_font">在打开的页面内点击直接安装</div>
				</div>
				<div class="method">
					<div class="fm_icon">2</div>
					<div class="fm_font">按 Home 键查看安装过程</div>
				</div>
				<div class="method">
					<div class="fm_icon">3</div>
					<div class="fm_font">完成安装并信任套件，操作如下：</div>
				</div>
				<div class="fm_fonts">设定 > 通用 > 设备管理 > 信任</div>
				<div class="method">
					<div class="fm_icon">4</div>
					<div class="fm_font">立即开启应用程序</div>
				</div>
				<div class="method">
					<div class="fm_font1">注意：使用微信扫描器需要点右上角菜单选择浏览器下载，谢谢！</div>
				</div>
			</div>
		</div>
		
		<div id="otherdevice" style="display:none">
			<div class="fonts">
				<div class="method">
					<div class="ct_font">现在只支持手机浏览器安装, 谢谢！</div>
				</div>
			<div id="mobile-qr"></div>
				<div class="mobile-desc"><strong>手机扫描安装</strong>&nbsp;或<br/><strong>手机浏览器输入域名安装</strong><br/><span id="current-domain"><span></div>
			</div>
			<div class="tutorial-wrapper">
				<div class="tutorial">
					<a class="button-tutorial ios" href="#popup-ios">苹果APP教程</a>
					<a class="button-tutorial android" href="#popup-android">安卓APP教程</a>
				</div>
			</div>
		</div>
		<div id="popup-ios" class="overlay">
			<div class="popup">
				<a class="close" href="#">&times;</a>
				<div class="content">
				<img src="/images/ios_1.jpg">
				</div>
			</div>
		</div>
		<div id="popup-android" class="overlay">
			<div class="popup">
				<a class="close" href="#">&times;</a>
				<div class="content">
					<img src="/images/android_1.jpg">
				</div>
			</div>
		</div>
	</div>
	<script src="/js/mobile-detect.min.js"></script>
	<script src="/js/qrcode.min.js"></script>
	<script>
	var md = new MobileDetect(window.navigator.userAgent);
	if (md.is('ios') == true) {
		document.getElementById("ios").style.display = 'block';
	} else if (md.is('AndroidOS') == true) {
		document.getElementById("android").style.display = 'block';
	} else {
		var currentProtocol = location.protocol;
		var currentDomain = location.hostname;
		new QRCode(document.getElementById("mobile-qr"), {text: currentProtocol + "//" + currentDomain+'/download.html', width: 180, height: 180});

		document.getElementById("current-domain").innerHTML = currentDomain+'/download.html';
		document.getElementById("otherdevice").style.display = 'block';
	}
	</script>
</body>
</html>